package com.example.wsappproject.MvpDemo.Data;

import android.telecom.Call;

import com.example.wsappproject.practice.ArticleEntity;

import java.io.IOException;

public interface IDataSource {

    interface NetCallBack<T>{
        void onFailure(Call call, IOException e);

        void onResponse(T entity);
    }

    void articleList(int currentPage, NetCallBack<ArticleEntity> netCallBack);
}
